<template>
  <div class="TableGroup">
    <el-row :gutter="40" class="panel-group">
      <el-col :xs="6" :sm="12" :lg="8">
        <div class="card-panel box-around">
          <div class="statusImg" />
          <div class="income">
            <div class="card-panel-count">
              <p class="card-panel-title">支付场景收入</p>
              <p class="platform">
                <!-- <count-to
                  :start-val="0"
                  :end-val="itemsInfo.item.income.self_total_num"
                  :duration="3600"
                  class="card-panel-num"
                /> -->
                {{ itemsInfo.item.income.self_total_num || 0 }} 笔 | {{ itemsInfo.item.income.self_total_fee || '0' }}元
              </p>
            </div>
          </div>
        </div>
      </el-col>

      <el-col :xs="12" :sm="12" :lg="8">
        <div class="card-panel box-around">
          <div class="statusImg statusImgonline" />
          <div class="income">
            <div class="card-panel-count">
              <p class="card-panel-title">HIS系统收入</p>
              <p class="platform online">
                <!-- <count-to
                  :start-val="0"
                  :end-val="itemsInfo.his"
                  :duration="3600"
                  class="card-panel-num"
                /> -->
                {{ itemsInfo.item.income.his_total_num || '0' }} 笔 | {{ itemsInfo.item.income.his_total_fee || '0' }}元
              </p>
            </div>

          </div>
        </div>
      </el-col>

      <el-col :xs="12" :sm="12" :lg="8">
        <div class="card-panel box-around">
          <div class="statusImg statusImgwaring" />
          <div class="income">
            <div class="card-panel-count">
              <p class="card-panel-title">支付系统收入</p>
              <p class="platform waring">
                <!-- <count-to
                  :start-val="0"
                  :end-val="itemsInfo.item.dev_offline_num"
                  :duration="3600"
                  class="card-panel-num"
                /> -->
                {{ itemsInfo.item.income.bank_total_num || '0' }} 笔 | {{ itemsInfo.item.income.bank_total_fee || '0' }}元
              </p>
            </div>
          </div>
        </div>
      </el-col>

    </el-row>
    <el-row :gutter="40" class="panel-group">
      <el-col :xs="6" :sm="12" :lg="8">
        <div class="card-panel box-around">
          <div class="statusImg statusImgerror" />
          <div class="income">
            <div class="card-panel-count">
              <p class="card-panel-title">支付场景—HIS系统</p>
              <p class="platform error">
                <!-- <count-to
                  :start-val="0"
                  :end-val="itemsInfo.item.dev_total_num"
                  :duration="3600"
                  class="card-panel-num"
                /> -->
                {{ itemsInfo.item.abnormal.self_his_num || '0' }} 笔 | {{ itemsInfo.item.abnormal.self_his_amount || '0' }}元
              </p>
            </div>

          </div>
        </div>
      </el-col>

      <el-col :xs="12" :sm="12" :lg="8">
        <div class="card-panel box-around">
          <div class="statusImg statusImgerror" />
          <div class="income">
            <div class="card-panel-count">
              <p class="card-panel-title">支付场景—支付系统</p>
              <p class="platform error">
                <!-- <count-to
                  :start-val="0"
                  :end-val="itemsInfo.item.dev_online_num"
                  :duration="3600"
                  class="card-panel-num"
                /> -->
                {{ itemsInfo.item.abnormal.self_bank_num || '0' }} 笔 | {{ itemsInfo.item.abnormal.self_bank_amount || '0' }}元
              </p>
            </div>

          </div>
        </div>
      </el-col>

      <el-col :xs="12" :sm="12" :lg="8">
        <div class="card-panel box-around">
          <div class="statusImg statusImgerror" />
          <div class="income">
            <div class="card-panel-count">
              <p class="card-panel-title">HIS系统-支付系统</p>
              <p class="platform error">
                <!-- <count-to
                  :start-val="0"
                  :end-val="itemsInfo.item.dev_offline_num"
                  :duration="3600"
                  class="card-panel-num"
                /> -->
                {{ itemsInfo.item.abnormal.his_bank_num || '0' }} 笔 | {{ itemsInfo.item.abnormal.his_bank_amount || '0' }}元
              </p>
            </div>
          </div>
        </div>
      </el-col>

    </el-row>
  </div>
</template>

<script>
// import CountTo from 'vue-count-to'
export default {
  // components: { CountTo },
  props: {
    itemsInfo: {
      type: Object,
      default: null
    }
  },
  data() {
    return {
      dataInit: {}
    }
  },
  mounted() {
    this.dataInit = this.itemsInfo.item
    console.log(this.itemsInfo)
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.TableGroup {
  background:rgba(255,255,255,1);
  border-radius:12px;
  padding: 0 31px;
  // margin-bottom: 40px;

  .card-panel-col {
    position: relative;

    &::after {
      content: "";
      width: 1px;
      height: 62px;
      background: rgba(221, 221, 221, 1);
      position: absolute;
      right: 0;
      top: 50%;
      transform: translate(0, -50%);
    }
    &:nth-of-type(4) {
      &::after {
        background: #fff;
        width: 0px;
        height: 0;
      }
    }
  }
  .TableGroup-title {
    font-size: 22px;
    font-family: PingFang SC;
    font-weight: 400;
    color: #333333;
    margin: 0 0 20px;
    font-weight: bold;
    text-align: center;
    color: #1e68f6;

    &::before {
      position: absolute;
      content: "";
      top: 50%;
      left: 1%;
      transform: translate(0, -50%);
      width: 40%;
      height: 1px;
      border-top: 1px dotted #1e68f6;
    }
  }
  .box-around{
    display: flex;
    justify-content: flex-start;
  }
  .panel-group{
    border-bottom: 1px solid #DDDDDD;
    padding: 0 15px 0 16px;
    .card-panel {
      font-size: 12px;
      position: relative;
      overflow: hidden;
      color: #666;
      border-radius: 10px;
      padding: 31px 0px;
      position: relative;
      .statusImg {
        width:8px;
        height:96px;
        background:linear-gradient(0deg,rgba(124,183,255,1),rgba(199,250,254,1));
        border-radius:3px;
      }
      .statusImgonline{
        background:linear-gradient(0deg,rgba(76,177,191,1),rgba(199,250,254,1));
      }
      .statusImgwaring{
        background:linear-gradient(0deg,rgba(255,204,50,1),rgba(255,242,204,1));
      }
      .statusImgerror{
        background:linear-gradient(0deg,rgba(254,156,147,1),rgba(255,209,208,1));
      }
      .card-panel-title {
        font-size: 18px;
        font-family: PingFang SC;
        font-weight: 400;
        color: #4e6b7b;
        margin: 10px 0 0;
      }
      .income{
        width: 100%;
        display: flex;
        justify-content: center;
      .card-panel-count {
        font-size: 20px;
        font-weight: bold;
        color: #333333;
        // padding-top: 5px;
        text-align: center;
        .platform{
          color: #3b89ea;
          font-size: 26px;
          font-weight: bold;
          padding-top: 29px;
        }
        .online {
            color: #0499AD;
        }
        .waring {
            color: #FEAF53;
        }
        .error {
            color: #FE2C53;
        }
      }
      }
    }
    .card-line {
      padding: 15px 34px;
      .three-line {
        padding-top: 20px;
        font-size: 16px;
        font-weight: 400;
        color: #333333;
        .down {
          color: #e03838;
          padding-left: 5px;
        }
        .top {
          color: #60c36d;
          padding-left: 5px;
        }
      }
    }
  }
  .panel-group:last-child{
     border-bottom: none;
  }

}
@media only screen and (max-width: 1200px) {
  .TableGroup .card-panel-col:nth-of-type(2):after {
    width: 0;
    height: 0;
  }
}
</style>
<style>
.TableGroup p{
  margin: 0;
}
.TableGroup .el-col{
  padding: 0px !important;
}
.TableGroup .el-row{
  margin: 0px !important;
}
</style>
